package com.fz.mapper;

import com.fz.entity.Member;
import com.fz.entity.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * Created by Zhuang on 2017-08-30.
 */
public interface StudentMapper {

//动态语句



    public List<Student> search(Map<String,Object> map);

    public List<Student> search1(Map<String,Object> map);

    public List<Student> search2(Map<String,Object> map);

    public int update(Map<String,Object> map);

    public int update1(Map<String,Object> map);

    //统一增加分数或者减少分数用的方法
    public int updateInc(int score);

    //功能强大的删除方法
    public int delete(Map<String,Object> map);

    //一下全部删除的方法
    public int delete();

    //示例，根据条件修改student表的分数，指定id分数的增减
    public int updateScore(Map<String,Object> map);

    public List<Student> search();
}
